import{ref as e}from"vue";import{ElMessage as l}from"element-plus";import n from"screenfull";const i=e(!1),r={isFullscreen:()=>i.value,init:()=>{n.isEnabled&&n.onchange(()=>{i.value=n.isFullscreen})},toggle:()=>{n.isEnabled?n.toggle():l.warning("当前您的浏览器不支持全屏 ❌")},full:()=>{n.isEnabled?n.isFullscreen||n.request():l.warning("当前您的浏览器不支持全屏 ❌")},exit:()=>{n.isEnabled?n.isFullscreen&&n.exit():l.warning("当前您的浏览器不支持全屏 ❌")}};export{r as useScreenFull};
//# sourceMappingURL=index.mjs.map
